<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Duye SDK User Wizard: Z:/duye/src/duyebase/public/duye_helper.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Duye SDK User Wizard
   &#160;<span id="projectnumber">V1.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_331246d48b7bdbf84ac81996db21b8ff.html">duyebase</a></li><li class="navelem"><a class="el" href="dir_25d881ab482735de2c5163d30f69af3f.html">public</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">duye_helper.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="duye__helper_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/************************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">**  </span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* @copyright (c) 2013-2100, ChengDu Duyer Technology Co., LTD. All Right Reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">*************************************************************************************/</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;list&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;set&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="duye__type_8h.html">duye_type.h</a>&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">namespace </span>duye {</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="classduye_1_1_str_helper.html">   31</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_str_helper.html" title="string extend function">StrHelper</a> {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_str_helper.html#a223f22a9313dcf2f2be1102a8506c193" title="convert char to uppercase  [in] instr : in string">strupr</a>(int8* instr);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#af772dbc3204cfa015e4a74551d79f347" title="convert chars to uppercase  [in] instr : in string  [in] outstr : out string  [in] outsize : outstr b...">strnupr</a>(<span class="keyword">const</span> int8* instr, int8* outstr, <span class="keyword">const</span> uint32 outsize); </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#a51852b1efb29a25b3c774ed4133d8ee0" title="convert char to lowercase  [in] instr : in string">strlwr</a>(int8* instr);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#a51852b1efb29a25b3c774ed4133d8ee0" title="convert char to lowercase  [in] instr : in string">strlwr</a>(<span class="keyword">const</span> int8* instr, int8* outstr, <span class="keyword">const</span> uint32 outsize);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#a540d9477dd3f873beb86df610f22024b" title="convert numerical value to string  [in] flag/integer : in numerical">toStr</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span> flag);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#a540d9477dd3f873beb86df610f22024b" title="convert numerical value to string  [in] flag/integer : in numerical">toStr</a>(<span class="keyword">const</span> int16 integer);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#a540d9477dd3f873beb86df610f22024b" title="convert numerical value to string  [in] flag/integer : in numerical">toStr</a>(<span class="keyword">const</span> uint16 integer);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#a540d9477dd3f873beb86df610f22024b" title="convert numerical value to string  [in] flag/integer : in numerical">toStr</a>(<span class="keyword">const</span> int32 integer);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#a540d9477dd3f873beb86df610f22024b" title="convert numerical value to string  [in] flag/integer : in numerical">toStr</a>(<span class="keyword">const</span> uint32 integer);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#a540d9477dd3f873beb86df610f22024b" title="convert numerical value to string  [in] flag/integer : in numerical">toStr</a>(<span class="keyword">const</span> int64 integer);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#a540d9477dd3f873beb86df610f22024b" title="convert numerical value to string  [in] flag/integer : in numerical">toStr</a>(<span class="keyword">const</span> uint64 integer);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#a540d9477dd3f873beb86df610f22024b" title="convert numerical value to string  [in] flag/integer : in numerical">toStr</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> fpn);</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#a540d9477dd3f873beb86df610f22024b" title="convert numerical value to string  [in] flag/integer : in numerical">toStr</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> fpn);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#ad9ec25147a054a3dbea6095f0613e55e" title="convert string to bool  [in] inStr : in string">toBool</a>(<span class="keyword">const</span> uint8* inStr);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#ad9ec25147a054a3dbea6095f0613e55e" title="convert string to bool  [in] inStr : in string">toBool</a>(<span class="keyword">const</span> std::string&amp; inStr);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">static</span> int64 <a class="code" href="classduye_1_1_str_helper.html#add23af9515b277bd5f7fa489869f18f8" title="convert string to integer  [in] inStr : in string">toInt</a>(<span class="keyword">const</span> uint8* inStr);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keyword">static</span> int64 <a class="code" href="classduye_1_1_str_helper.html#add23af9515b277bd5f7fa489869f18f8" title="convert string to integer  [in] inStr : in string">toInt</a>(<span class="keyword">const</span> std::string&amp; inStr);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#a9ca052c17fee1bfb4fdf7c909a2d8d81" title="to detemine char whether is integer.  [in] ch : in char">isNum</a>(<span class="keyword">const</span> int8 ch);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#ab8fd816dd6a6c498810d2d1e6ee3b9e5" title="to detemine chars whether is integer.  [in] chars : in chars">isNums</a>(<span class="keyword">const</span> int8* chars);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#ab8fd816dd6a6c498810d2d1e6ee3b9e5" title="to detemine chars whether is integer.  [in] chars : in chars">isNums</a>(<span class="keyword">const</span> std::string&amp; str);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#aa532acd3e0b35b1e0bec485a9c806035" title="to detemine whether is ip address.  [in] ipAddr : in ip address">isIpAddr</a>(<span class="keyword">const</span> std::string&amp; ipAddr);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#a8f5ad077ad83d4ee04e32c2986e982a8" title="to detemine whether is port.  [in] port : port">isPort</a>(<span class="keyword">const</span> uint32 port);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#a951f26ed2c1f0463fd905f524d99889e" title="compare string  [in] firstStr : first string.  [in] secondStr : second string.  [in] ignore : whether...">compare</a>(<span class="keyword">const</span> int8* firstStr, <span class="keyword">const</span> int8* secondStr, <span class="keyword">const</span> <span class="keywordtype">bool</span> ignore = <span class="keyword">false</span>);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#a951f26ed2c1f0463fd905f524d99889e" title="compare string  [in] firstStr : first string.  [in] secondStr : second string.  [in] ignore : whether...">compare</a>(<span class="keyword">const</span> int8* firstStr, <span class="keyword">const</span> int8* secondStr, <span class="keyword">const</span> uint32 comLen, <span class="keyword">const</span> <span class="keywordtype">bool</span> ignore = <span class="keyword">false</span>);</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#afc68779d90a126cffab7b33880f352e8" title="compare string  [in] str : full string.  [in] subStr : sub string.  [in] ignore : ignore capital and ...">begWith</a>(<span class="keyword">const</span> int8* str, <span class="keyword">const</span> int8* subStr, <span class="keyword">const</span> <span class="keywordtype">bool</span> ignore = <span class="keyword">false</span>);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> endWith(<span class="keyword">const</span> int8* str, <span class="keyword">const</span> int8* subStr, <span class="keyword">const</span> <span class="keywordtype">bool</span> ignore = <span class="keyword">false</span>);    </div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="keywordtype">void</span> trim(std::string&amp; inStr);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordtype">void</span> trimEnter(std::string&amp; inStr);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_str_helper.html#a9a68c761ec13d06b2ef68515b480fe37" title="compare string  [in] inStr : full string.  [in] separator : cut off symbol  [in] outArray : output st...">split</a>(<span class="keyword">const</span> std::string&amp; inStr, <span class="keyword">const</span> int8 separator, std::vector&lt;std::string&gt;&amp; outArray);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_str_helper.html#a9a68c761ec13d06b2ef68515b480fe37" title="compare string  [in] inStr : full string.  [in] separator : cut off symbol  [in] outArray : output st...">split</a>(<span class="keyword">const</span> std::string&amp; inStr, <span class="keyword">const</span> std::string&amp; separator, std::vector&lt;std::string&gt;&amp; outArray);</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_str_helper.html#a9a68c761ec13d06b2ef68515b480fe37" title="compare string  [in] inStr : full string.  [in] separator : cut off symbol  [in] outArray : output st...">split</a>(<span class="keyword">const</span> std::string&amp; inStr, <span class="keyword">const</span> int8 separator, std::list&lt;std::string&gt;&amp; outArray);</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_str_helper.html#a9a68c761ec13d06b2ef68515b480fe37" title="compare string  [in] inStr : full string.  [in] separator : cut off symbol  [in] outArray : output st...">split</a>(<span class="keyword">const</span> std::string&amp; inStr, <span class="keyword">const</span> std::string&amp; separator, std::list&lt;std::string&gt;&amp; outArray);</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_str_helper.html#a9a68c761ec13d06b2ef68515b480fe37" title="compare string  [in] inStr : full string.  [in] separator : cut off symbol  [in] outArray : output st...">split</a>(<span class="keyword">const</span> std::string&amp; inStr, <span class="keyword">const</span> int8 separator, std::set&lt;std::string&gt;&amp; outArray);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_str_helper.html#a9a68c761ec13d06b2ef68515b480fe37" title="compare string  [in] inStr : full string.  [in] separator : cut off symbol  [in] outArray : output st...">split</a>(<span class="keyword">const</span> std::string&amp; inStr, <span class="keyword">const</span> std::string&amp; separator, std::set&lt;std::string&gt;&amp; outArray); </div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#a46a1d999958bf3120703a0b54cdb7d47" title="get line.  [in] inStr : full string.  [in] sepStr : separator string.  [in] outArray : output string ...">getLine</a>(<span class="keyword">const</span> std::string&amp; inStr, <span class="keyword">const</span> int8* sepStr, std::list&lt;std::string&gt;&amp; lineList);</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_str_helper.html#a46a1d999958bf3120703a0b54cdb7d47" title="get line.  [in] inStr : full string.  [in] sepStr : separator string.  [in] outArray : output string ...">getLine</a>(<span class="keyword">const</span> std::string&amp; inStr, <span class="keyword">const</span> int8* sepStr, std::set&lt;std::string&gt;&amp; lineSet);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    </div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#ab24fc16e87d27b1f3dc8aa81dfa88e1d" title="get file path basename  [in] inFilePath : file full path.">basename</a>(<span class="keyword">const</span> std::string&amp; inFilePath);</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#ab24fc16e87d27b1f3dc8aa81dfa88e1d" title="get file path basename  [in] inFilePath : file full path.">basename</a>(<span class="keyword">const</span> int8* inFilePath);</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#a9ed950fc31641d83a1119e795647d3f2" title="get file directory  [in] inFilePath : file full path.">filedir</a>(<span class="keyword">const</span> std::string&amp; inFilePath);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_str_helper.html#a9ed950fc31641d83a1119e795647d3f2" title="get file directory  [in] inFilePath : file full path.">filedir</a>(<span class="keyword">const</span> int8* inFilePath);  </div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;};</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="code" href="classduye_1_1_byte_helper.html">  196</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_byte_helper.html" title="string extend function">ByteHelper</a> {</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="keyword">static</span> int8* <a class="code" href="classduye_1_1_byte_helper.html#a648632024a1220a4a58dcafde606c838" title="find sub byte array">findSubBytes</a>(<span class="keyword">const</span> int8* data, <span class="keyword">const</span> uint32 dataLen, <span class="keyword">const</span> int8* sub, <span class="keyword">const</span> uint32 subLen);</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="keyword">static</span> int8* <a class="code" href="classduye_1_1_byte_helper.html#a487bda2bb1d990af8684195f4338ca37" title="find byte">findByte</a>(<span class="keyword">const</span> int8* data, <span class="keyword">const</span> uint32 dataLen, <span class="keyword">const</span> int8 byte);</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keyword">static</span> int8* <a class="code" href="classduye_1_1_byte_helper.html#aaa962e9fb7c354454225a087d89ad88b" title="reverse find byte">findByteR</a>(<span class="keyword">const</span> int8* data, <span class="keyword">const</span> uint32 dataLen, <span class="keyword">const</span> int8 byte);</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    </div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_byte_helper.html#aa0972efa3a3671d4e29fde26b7356871" title="convert byte array to hex format string">toHexStr</a>(<span class="keyword">const</span> int8* data, <span class="keyword">const</span> uint32 dataLen);</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;};</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="code" href="classduye_1_1_time_helper.html">  245</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_time_helper.html" title="time extend function">TimeHelper</a> {</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00247"></a><span class="lineno"><a class="code" href="structduye_1_1_time_helper_1_1_time_value.html">  247</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structduye_1_1_time_helper_1_1_time_value.html">TimeValue</a> {</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        uint16  year;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        uint8   month;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;        uint8   day;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        uint8   hour;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        uint8   minute;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        uint8   sec;</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        uint16  msec; <span class="comment">// millisecond</span></div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;        uint16  usec; <span class="comment">// microsecond</span></div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    };</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_time_helper.html#aa2677426dad0eba880eacc10d2313079" title="format time">format</a>(<span class="keyword">const</span> uint64 usec, <a class="code" href="structduye_1_1_time_helper_1_1_time_value.html">TimeHelper::TimeValue</a>&amp; timeValue);</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_time_helper.html#aa2677426dad0eba880eacc10d2313079" title="format time">format</a>(<span class="keyword">const</span> uint64 usec);</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;};</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;</div>
<div class="line"><a name="l00281"></a><span class="lineno"><a class="code" href="classduye_1_1_net_helper.html">  281</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_net_helper.html" title="time extend function">NetHelper</a> {</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    <span class="keyword">static</span> uint32 <a class="code" href="classduye_1_1_net_helper.html#ab0cd9916815193df4bfda7002c7b7d25" title="format time">ipToInt</a>(<span class="keyword">const</span> std::string&amp; strIP);</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_net_helper.html#a8889d872d01e4796825894bd4031d8f9" title="format time">ipToStr</a>(<span class="keyword">const</span> uint32 intIP);</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;};</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;</div>
<div class="line"><a name="l00302"></a><span class="lineno"><a class="code" href="classduye_1_1_alg_helper.html">  302</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_alg_helper.html" title="algorithm extend function">AlgHelper</a> {</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_alg_helper.html#a5d5f80c488d1b3580899cb61ed3d5abf" title="calculation bytes md5">md5Bytes</a>(<span class="keyword">const</span> int8* bytes, <span class="keyword">const</span> uint32 len);</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    <span class="keyword">static</span> std::string <a class="code" href="classduye_1_1_alg_helper.html#a24513286a6a0cd274221043cf470a3f1" title="calculation file md5">md5File</a>(<span class="keyword">const</span> int8* filePath); </div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;};</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Feb 27 2017 15:19:13 for Duye SDK User Wizard by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3
</small></address>
</body>
</html>
